/* 
    Premium Lernor Landing Page Styles
    Developed to match the dark-mode examiner-level branding.
*/

:root {
    --primary-gold: #B58E2F;
    --primary-gold-hover: #9e7b26;
    --dark-bg: #001C3D;
    --card-bg: #002b5c;
    --text-white: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Newsreader', serif;
    --font-body: 'Lexend', sans-serif;
    --glow-gold: rgba(181, 142, 47, 0.15);
}

body.premium-ui::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, var(--glow-gold), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body.premium-ui::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(0, 43, 92, 0.2), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Sticky Header */
.top-notification-bar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000 !important;
    background: #001C3D !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 0 !important; /* Minimal padding for desktop */
}

.top-notification-bar img {
    height: 140px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.top-notification-bar img:hover {
    transform: scale(1.05);
}

/* Adjust body padding for fixed header */
body.premium-ui {
    padding-top: 145px !important; /* 140px logo + minor gap */
}

@media (max-width: 991px) {
    .top-notification-bar img {
        height: 100px;
    }
    body.premium-ui {
        padding-top: 105px !important;
    }
}

@media (max-width: 767px) {
    body.premium-ui {
        padding-top: 160px !important; 
    }
    .top-notification-bar {
        padding: 10px 0 !important;
    }
    .top-notification-bar img {
        height: 65px;
    }
    .mobile-header-wrapper {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .mobile-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .mobile-bottom-row {
        text-align: center;
        width: 100%;
    }
}

.premium-section.light-section .section-tag {
    background: rgba(0, 28, 61, 0.05) !important;
    border-color: rgba(0, 28, 61, 0.1) !important;
    color: #001C3D !important;
}

body.premium-ui {
    background-color: var(--dark-bg);
    color: var(--text-white);
    font-family: var(--font-body);
}

/* Typography Overwrites */
.premium-ui h1,
.premium-ui h2,
.premium-ui h3,
.premium-ui h4 {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 500;
    /* Lighter, elegant serif look */
}

.premium-ui p {
    color: var(--text-muted);
    font-family: var(--font-body);
}

/* Sections & Animations */
.premium-section.light-section {
    background: #FFFFFF !important;
    color: #001C3D !important;
}

.premium-section.light-section h2,
.premium-section.light-section h4,
.premium-section.light-section p,
.premium-section.light-section .hero-title,
.premium-section.light-section .title,
.premium-section.light-section .hero-subtitle,
.premium-section.light-section .text-muted {
    color: #001C3D !important;
}

.premium-section.gold-box-section {
    background: #FFFFFF !important;
    color: #001C3D !important;
}

.premium-section.gold-box-section .method-card {
    background: #F4BF00 !important;
    color: #001C3D !important;
    border-color: rgba(0, 28, 61, 0.1);
}

.premium-section.gold-box-section h2,
.premium-section.gold-box-section p,
.premium-section.gold-box-section .hero-subtitle,
.premium-section.gold-box-section .text-muted {
    color: #001C3D !important;
}

.premium-section.gold-box-section .section-tag {
    background: rgba(0, 28, 61, 0.1) !important;
    border-color: rgba(0, 28, 61, 0.2) !important;
    color: #001C3D !important;
    font-weight: 700;
}

.premium-section.gold-box-section .premium-btn-primary {
    background: #001C3D !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 28, 61, 0.3);
}

.premium-section.gold-box-section .premium-btn-primary:hover {
    background: #002b5c !important;
    transform: translateY(-3px);
}

.premium-section {
    padding: 50px 0 !important;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.premium-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.premium-gradient-bg {
    background: radial-gradient(circle at top right, rgba(181, 142, 47, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(0, 43, 92, 1), #001C3D);
}

/* Buttons */
.premium-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.premium-btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), #8a6d24) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(181, 142, 47, 0.3);
}

.premium-btn-primary:hover {
    background: linear-gradient(135deg, #d4af37, var(--primary-gold)) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(181, 142, 47, 0.4);
}

.premium-btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-white) !important;
}

.premium-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Section Header Tags */
.section-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.section-tag-green {
    background: rgba(181, 142, 47, 0.1);
    border-color: rgba(181, 142, 47, 0.2);
    color: var(--primary-gold);
}

.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 70% 30%, rgba(181, 142, 47, 0.08), transparent 40%),
        var(--dark-bg);
    overflow: hidden;
    padding-bottom: 90px !important;
}

.hero-image-container {
    position: relative;
    z-index: 1;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary-gold);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.hero-img {
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: scale(1.02);
}

.hero-title {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

/* Stat Strip */
.stat-strip {
    background: var(--dark-bg);
    padding: 50px 0 !important;
    border-top: 3px solid var(--primary-gold);
    border-bottom: 3px solid var(--primary-gold);
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: rgba(181, 142, 47, 0.3);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-gold);
    line-height: 1.2;
    margin-bottom: 12px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #8a99a8;
    line-height: 1.5;
    max-width: 200px;
    margin: 0 auto;
}

/* Problem Cards */
.problem-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: 16px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.problem-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(181, 142, 47, 0.3);
    transform: translateX(10px);
}

.problem-dot {
    width: 8px;
    height: 8px;
    background: #FF4D4D;
    border-radius: 50%;
    margin-top: 10px;
    margin-right: 20px;
    flex-shrink: 0;
}

.premium-section.light-section .quote-card,
.premium-section.light-section .method-card {
    background: #f8faff !important;
    border: 1px solid #e1e8f0 !important;
    color: #001C3D !important;
    box-shadow: 0 4px 15px rgba(0, 28, 61, 0.05);
}

.premium-section.light-section .quote-card p,
.premium-section.light-section .method-card h4,
.premium-section.light-section .method-card p {
    color: #001C3D !important;
}

/* Comparison Cards */
.comparison-container {
    display: flex;
    gap: 30px;
}

.comparison-card {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
}

.comparison-card.highlight {
    border-color: var(--primary-gold);
    box-shadow: 0 0 30px rgba(181, 142, 47, 0.1);
}

.comparison-title {
    font-size: 14px;
    text-transform: uppercase;
    color: white !important;
    margin-bottom: 30px;
    display: block;
}

.comparison-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    list-style: none;
    display: flex;
    align-items: center;
    color: white !important;
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-icon {
    margin-right: 15px;
}

/* Method Cards */
.method-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 45px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.method-card:hover {
    background: var(--card-bg);
    border-color: var(--primary-gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.method-image-box {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.method-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.method-card:hover .method-image-box img {
    transform: scale(1.1);
}

.method-image-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 28, 61, 0.5), transparent);
}

/* Testimonials */
.stars {
    color: var(--primary-gold);
    font-size: 18px;
    margin-bottom: 15px;
    display: block;
}

.quote-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    height: 100%;
}

.stars {
    color: #F4BF00;
    margin-bottom: 20px;
}

/* Lead Form Card */
.lead-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}

.lead-form-content {
    padding: 60px;
}

.lead-form-side {
    background: rgba(181, 142, 47, 0.05);
}

/* Footer & Topbar adjustment */
.premium-ui header,
.premium-ui .topbar-area {
    background-color: var(--dark-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.premium-ui .topbar-area a,
.premium-ui .topbar-area i {
    color: var(--text-muted) !important;
}

.premium-ui .menu-area {
    background-color: var(--dark-bg) !important;
}

.premium-ui .mobile-sticky-footer {
    background-color: var(--dark-bg) !important;
    border-top: 1px solid var(--border-color) !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 42px;
    }

    .comparison-container {
        flex-direction: column;
    }

    .lead-form-content {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .premium-ui h2 {
        font-size: 28px !important;
    }

    .premium-ui h3 {
        font-size: 22px !important;
    }

    .premium-ui h4 {
        font-size: 18px !important;
    }

    .stat-number {
        font-size: 26px;
    }

    .premium-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .premium-section {
        padding: 60px 0 !important;
    }

    .hero-section {
        padding-bottom: 60px !important;
    }

    .stat-strip {
        padding: 0 0 40px 0 !important;
    }

    .comparison-card {
        padding: 25px;
    }

    .method-card {
        padding: 25px;
    }
}

/* Dropdown UI: Force Black Text & Light Background */
body.premium-ui .nice-select .list,
.premium-ui .nice-select .list,
.nice-select.open .list {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    border: 1px solid var(--primary-gold) !important;
    color: #000000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.premium-ui .nice-select .option,
.premium-ui .nice-select .option {
    background-color: transparent !important;
    color: #000000 !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}

body.premium-ui .nice-select .option:hover,
body.premium-ui .nice-select .option.focus,
body.premium-ui .nice-select .option.selected.focus {
    background-color: var(--primary-gold) !important;
    /* Gold background on hover */
    color: #000000 !important;
    /* Force black text on hover */
}

body.premium-ui .nice-select .option.selected {
    background-color: rgba(181, 142, 47, 0.1) !important;
    color: #000000 !important;
    /* Force black text for selected */
    font-weight: 700 !important;
}

/* Ensure display text on input remains white */
body.premium-ui .nice-select .current {
    color: #FFFFFF !important;
}

/* Fix for Native Browser Select Dropdowns (Fallback) */
select.form-select {
    color: #FFFFFF !important;
    /* The selected value shown in the box */
}

select.form-select option {
    background-color: #FFFFFF !important;
    /* Force white background */
    color: #000000 !important;
    /* Force black text */
    padding: 10px;
}

select.form-select option:hover,
select.form-select option:checked {
    background-color: var(--primary-gold) !important;
    color: #000000 !important;
}

/* Custom Range Slider */
.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(181, 142, 47, 0.5);
    transition: all 0.2s ease;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(181, 142, 47, 0.8);
}

.custom-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-gold);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* Desktop Sticky Left Widget */
.desktop-sticky-left {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    flex-direction: column;
    z-index: 1000;
    background: var(--dark-bg);
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 2px solid var(--primary-gold);
    border-left: none;
}

.desktop-sticky-left .widget-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    color: var(--text-white);
    font-size: 24px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(181, 142, 47, 0.3);
    text-decoration: none;
}

.desktop-sticky-left .widget-item:last-child {
    border-bottom: none;
}

.desktop-sticky-left .widget-item:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
    transform: scale(1.1);
}